import {httpRequest, httpRequestUpload} from './http'
// 登录接口
export const requestLogin = params => { return httpRequest('post', 'auth/oauth/token', params, '') }
// 注销接口
export const requestLogout = params => { return httpRequest('post', 'auth/logout', params, 'json') }
// 修改密码
export const requestUpdatePwd = params => { return httpRequest('post', 'server/user/updatePwd', params, 'json') }
// 上传接口
export const requestUploadFile = file => httpRequestUpload('server/file/upload', file)


// 获取验证码
export const captcha = () => { return httpRequest('post', 'captcha', null, 'json') }
